name: rd-net

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: windows-latest
    timeout-minutes: 15
    steps:
    - uses: actions/checkout@v2
    - name: Setup .NET Core SDK
      uses: actions/setup-dotnet@v1.7.2
      with:
        dotnet-version: '5.0.x'
    - name: Restore
      run: cd rd-net && dotnet restore
    - name: Compile
      run: cd rd-net && dotnet build --configuration Release --no-restore
    - name: Tests
      run: cd rd-net && dotnet test --no-restore --verbosity quiet --logger trx
    - uses: actions/upload-artifact@v2
      if: failure()
      with:
        name: tests-log
        path: "**/TestResults/*"

